package com.example.dayday.pojo;

import java.math.BigDecimal;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Helen
 * @since 2022-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Teacher对象", description="")
public class Teacher extends User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id号")
      @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    private Long id;

    @ApiModelProperty(value = "教师工号字符长度为10")
    @ExcelProperty(value = "教师编号")
    private Long teacherId;

    @ApiModelProperty(value = "教师姓名")
    @ExcelProperty(value = "教师姓名")
    private String teacherName;

    @ApiModelProperty(value = "是否是管理员")
    @ExcelProperty(value = "是否是管理员")
    private String isAdmin;

    @ApiModelProperty(value = "专业id")
    @ExcelProperty(value = "专业id")
    private Long classId;

    @ApiModelProperty(value = "性别")
    @ExcelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "密码	")
    @ExcelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "薪水")
    @ExcelProperty(value = "薪水")
    private BigDecimal salary;

    @ApiModelProperty(value = "手机号")
    @ExcelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "创建时间")
    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "1 已删除   0未删除")
    @ExcelIgnore
    @TableLogic(value = "0",delval = "1")
    private String isDelete;

    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    @ApiModelProperty(value = "创建人")
    private String createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    @ApiModelProperty(value = "修改人")
    private String updateUser;

}
